<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>
<%@ page import="com.scalar.chiptrack.users.User" %>
<%@ page import="com.scalar.chiptrack.commons.SessionKeys" %>
<%
    response.setHeader("Cache-Control", "no-cache");
    response.setHeader("Pragma", "no-cache");
    response.setDateHeader("max-age", 0);
    response.setDateHeader("Expires", 0);
%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-nested.tld" prefix="nested" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>


<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<HTML><TITLE>Scalarsoft - ChipTrac</TITLE>
<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type="text/css" rel="stylesheet">
<script src="<%=chipTracContext%>/jsp/includes/scripts/functions.js"></script>
<script src="<%=chipTracContext%>/jsp/includes/scripts/validations.js"></script>
<%
    User user = (User) session.getAttribute ( SessionKeys.USER_KEY );
    if ( user != null )
    {
%>
<BODY bgColor="#ffffff" leftMargin="0" topMargin="0" marginheight="0" marginwidth="0">

    <TABLE width="100%" align="center" cellpadding="2" cellspacing="2" border="0">
   
    <logic:present name="LotsList">
    <bean:size id="lotsListSize" name="LotsList"/>
    <logic:greaterThan value="0" name="lotsListSize">
    <TR>
        <TD>
            <table width="100%" align="left" cellpadding="2" cellspacing="2" border="0">
                <tr><td width="100%" colspan="8">&nbsp;</td></tr>
                <logic:notEqual name="requestFrom" value="Releases">
                <tr>
                    <td width="100%" colspan="8" class="NArialW" align="center">Lot History</td>
                </tr>
                </logic:notEqual>
                <logic:equal name="requestFrom" value="Releases">
                    <tr>
                       <td width="100%" colspan="8" class="NArialW" align="center">Releases History</td>
                    </tr>
                 </logic:equal>
                <tr><td width="100%" colspan="8">&nbsp;</td></tr>
                <tr><td width="100%" colspan="8">&nbsp;</td></tr>
                <tr>
                    <!--<td width="15%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Lot Number</font>
                    </td>-->
                    <logic:notEqual name="requestFrom" value="Releases">
                    <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Qty In</font>
                    </td>
                    <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Stage Name</font>
                    </td>
                    <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">As Of Date</font>
                    </td>
                    </logic:notEqual>
                    <logic:equal name="requestFrom" value="Releases">
                    <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Release Qty</font>
                    </td>
                    <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Release No</font>
                    </td>
                    <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Release Date</font>
                    </td>
                     <td width="10%" class="NArialL" bgcolor="#993333" align="center">
                        <font color="#FFFFFF">Release Part#</font>
                    </td>
                    </logic:equal>
                </tr>

                <logic:iterate indexId="iteratorIdx" id="wipInfo" name="LotsList" type="com.scalar.chiptrack.operations.dataentry.LotDetails">
                <tr bgcolor='<%=iteratorIdx.intValue() % 2 == 0 ? "#FFFFEE" : "#DEE1E2"%>'>
                  
                    <td class="NArialL" align="center">
                        <bean:write name="wipInfo" property="waferQtyIn" />
                    </td>
                    <td class="NArialL" align="center">
                        <bean:write name="wipInfo" property="stageName" />
                    </td>
                    <td class="NArialL" align="center">
                        <bean:write name="wipInfo" property="dateIn" />
                    </td>
                    <logic:equal name="requestFrom" value="Releases">
                        <td class="NArialL" align="center" nowrap>
                        <bean:write name="wipInfo" property="partNumber" />
                        </td>
                    </logic:equal>
                </tr>
                </logic:iterate>
                <tr><td width="100%" colspan="8">&nbsp;</td></tr>
                <tr><td width="100%" colspan="8">&nbsp;</td></tr>
                <tr>
                    <td width="100%" colspan="8" class="NArialL" align="center"><a href="javascript:window.close();">Close</a></td>
                </tr>
            </table>
        </TD>
    </TR>
    </logic:greaterThan>
    <logic:equal value="0" name="lotsListSize">
    <TR>
        <TD colspan='4' width="100%">
            <table width="100%" align="left" cellpadding="2" cellspacing="2" border="0">
                <tr>
                    <td width="100%" colspan="7" class="NArialW" align="center">No History Found</td>
                </tr>
                <tr><td width="100%" colspan="7">&nbsp;</td></tr>
                <tr><td width="100%" colspan="7">&nbsp;</td></tr>
                <tr>
                    <td width="100%" colspan="7" class="NArialL" align="center"><a href="javascript:window.close();">Close</a></td>
                </tr>
            </table>
        </TD>
    </TR>
    </logic:equal>
    </logic:present>

    </TABLE>
</BODY>
<%
    }
    else
    {
%>
    <BODY bgcolor='ffffff' marginheight='0' marginwidth='0' topmargin='0' leftmargin='0' >
    <TABLE cellpadding='0' cellspacing='0' bgcolor='FDF5E6' border="0" width="100%"  height="100%" align=center>
        <TR>
            <TD>
                <TABLE align="center" border="0" width="40%" bgcolor="#FDF5E6">
                    <TR><TD>&nbsp;</TD></TR>
                    <TR><TD align="center" ><font class="NArialL" ><font color="red"><b>Session has been time out , Please close this window and login again.</b></font></font></TD></TR>
                    <TR><TD>&nbsp;</TD></TR>
                    <TR><TD align="center" ><a href="javascript:window.close();"><font class='NArialL'>[Close this window]</font></a></TD></TR>
                </TABLE>
            </TD>
       </TR>
       <TR><TD>&nbsp;</TD></TR>
    </TABLE>
    </BODY>
<% } %>
</HTML>
